package cn.chiship.framework.upms.biz.user.pojo.dto;

import cn.chiship.framework.common.constants.TipConstants;
import cn.chiship.framework.upms.biz.user.entity.UpmsUserLoginHistory;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 用户组织关联表单
 *
 * @author LiJian
 */
@ApiModel(value = "用户组织关联表单")
public class UpmsUserOrganizationDto {
    @ApiModelProperty(value = "组织机构ID")
    @NotNull(message = "组织机构ID" + TipConstants.NOT_EMPTY)
    @Length(min = 11)
    private String organizationId;

    @ApiModelProperty(value = "组织完整路径ID")
    @NotNull(message = "组织完整路径ID" + TipConstants.NOT_EMPTY)
    @Length(min = 11)
    private String fullOrganizationId;

    @ApiModelProperty(value = "用户ID")
    private String userId;


    @ApiModelProperty(value = "类型 1 组织 2 部门", required = true)
    @NotNull(message = "类型" + TipConstants.NOT_EMPTY)
    @Min(1)
    @Max(2)
    private Byte type;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "工作")
    private String job;

    @ApiModelProperty(value = "排序", required = true)
    @NotNull(message = "排序" + TipConstants.NOT_EMPTY)
    @Min(1)
    private Integer orders;

    public String getOrganizationId() {
        return organizationId;
    }

    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getFullOrganizationId() {
        return fullOrganizationId;
    }

    public void setFullOrganizationId(String fullOrganizationId) {
        this.fullOrganizationId = fullOrganizationId;
    }

    public Byte getType() {
        return type;
    }

    public void setType(Byte type) {
        this.type = type;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public Integer getOrders() {
        return orders;
    }

    public void setOrders(Integer orders) {
        this.orders = orders;
    }
}